<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>交易明细</title>
		<meta name="viewport"
			content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<link href="../../../../../../css/mui.css" rel="stylesheet" />
		<link rel="stylesheet" href="../../../../../../css/common.css" stylesheet" />
		<link rel="stylesheet" href="../../../../../../css/style.css" stylesheet" />
		<link rel="stylesheet" type="text/css" href="../../../../../../css/mui.picker.min.css" />
		<link rel="stylesheet" type="text/css" href="../statistics/css/index.css" />
		<link rel="stylesheet" href="./css/index.css" />
	</head>
	<body>
		<div class="mui-content">
			<div class="main">
				<div class="top">
					<div class="mui-input-row">
						<img src="../../../../../../images/distribution/icon_common_search.png">
						<input type="search" placeholder="请搜索订单编号或客户手机号码...">
					</div>
				</div>
				<div class="time flex">
					<i>时间:</i>
					<p class="timeStsrt" data-options='{"type":"date"}' id="1">
						<span class="timeVal"></span>
						<img src="../../../../../../images/distribution/icon_distribution_statistic_arrow_down.png">
					</p>
					<i class="go">至</i>
					<p class="timeEnd" data-options='{"type":"date"}' id="2">
						<span class="timeVal"></span>
						<img src="../../../../../../images/distribution/icon_distribution_statistic_arrow_down.png">
					</p>
				</div>
				<div class="types flex">
					<i class="first">类型:</i>
					<span data-types="all" class="active">全部</span>
					<span data-types="sale">售出</span>
					<span data-types="retreat">退货</span>
				</div>
				<div class="details">
					<p class="clearfix time"><span>03-26 13:57:24</span><span class="floatRight">退货</span></p>
					<div class="middle flex">
						<img src="../../../../../../images/headlines/face.jpg" >
						<div class="right">
							<p class="txt-cut-one">韩束KANS补水保湿面膜 10片装</p>
							<p class="clearfix"><span>￥30.00</span> <span class="floatRight">x1</span></p>
						</div>
					</div>
					<div class="bottom">
						<p><span>订单编号:</span><span>202103240818420001</span></p>
						<p><span>下单用户:</span><span>路人甲乙丙</span></p>
						<p><span>退款金额:</span><span>￥30.00</span></p>
					</div>
				</div>
				<div class="details">
					<p class="clearfix time"><span>03-26 13:57:24</span><span class="floatRight">退货</span></p>
					<div class="middle flex">
						<img src="../../../../../../images/headlines/face.jpg" >
						<div class="right">
							<p class="txt-cut-one">韩束KANS补水保湿面防水袋第四个膜 10片装</p>
							<p class="clearfix"><span>￥30.00</span> <span class="floatRight">x1</span></p>
						</div>
					</div>
					<div class="bottom">
						<p><span>订单编号:</span><span>202103240818420001</span></p>
						<p><span>下单用户:</span><span>路人甲乙丙</span></p>
						<p><span>退款金额:</span><span>￥30.00</span></p>
					</div>
				</div>
			</div>
		</div>
	</body>
	<script src="../../../../../../js/mui.min.js"></script>
	<script src="../../../../../../js/jquery-3.4.1.min.js"></script>
	<script src="../../../../../../js/resize.js" type="text/javascript"></script>
	<script src="../../../../../../js/util.js" type="text/javascript" charset="utf-8"></script>
	<script src="../../../../../../js/mui.picker.min.js" type="text/javascript"></script>
	<script type="text/javascript">
		$(function($) {
			// 文档一加载就执行
			obj.setRem()
			// 窗口调节
			$(window).resize(function() {
				obj.setRem()
			});
			// tap事件
			$.tapHandle()
			// 点击变颜色
			$('.types span').on('tap', function(e) {
				 // alert('3')
				 console.log(e)
				let type = this.getAttribute('data-types')
				// all sale retreat
				if (type == 'all') {
					console.log('全部')
				} else if (type == 'sale') {
					console.log('sale')
				} else {
					console.log('retreat')
				}
				$(this).addClass('active').siblings().removeClass("active");
			})
			// 时间
			// 点击选择时间
			let btns = $('.time p');
			btns.each(function(i, btn) {
				btn.addEventListener('tap', function() {
					var _self = this;
					if (_self.picker) {
						_self.picker.show(function(rs) {
							$(_self).find('.timeVal').text(rs.text)
							_self.picker.dispose();
							_self.picker = null;
						});
					} else {
						var optionsJson = this.getAttribute('data-options') || '{}';
						var options = JSON.parse(optionsJson);
						_self.picker = new mui.DtPicker(options);
						_self.picker.show(function(rs) {
							$(_self).find('.timeVal').text(rs.text)
							_self.picker.dispose();
							_self.picker = null;
						});
					}

				}, false);
			});
		})
	</script>
</html>
